package org.marvell.infra;

import com.aqua.sysobj.conn.CliCommand;
import jsystem.framework.system.SystemObjectImpl;

public class NikolaSO extends SystemObjectImpl {

	public NikolaCli cli;

	@Override
	public void init() throws Exception {
		super.init();
	}

	public String executeCliCommand(String command) throws Exception {
		CliCommand cliCommand = new CliCommand(command);
		cli.handleCliCommand(cliCommand.getCommands()[0], cliCommand);
		return (String) cli.getTestAgainstObject();
	}

	public String showVersion() throws Exception {
		return executeCliCommand("show version");
	}

}
